package com.game.commons.scripts.java.scriptmanager;

import java.util.Set;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 脚本描述XML根节点
 * @author 杜祥
 * @create 2013-6-27
 */
@XmlRootElement(name = "scriptlist")
@XmlAccessorType(XmlAccessType.NONE)
public class ScriptList 
{
	@XmlElement(name = "scriptinfo" , type = ScriptInfo.class)
	private Set<ScriptInfo> scriptInfos;

	public Set<ScriptInfo> getScriptInfos()
	{
		return scriptInfos;
	}

	public void setScriptInfos(Set<ScriptInfo> scriptInfos) 
	{
		this.scriptInfos = scriptInfos;
	}

	/** {@inheritDoc} */
	@Override
	public String toString()
	{
		final StringBuilder sb = new StringBuilder();
		sb.append("ScriptList");
		sb.append("{scriptInfos=").append(scriptInfos);
		sb.append('}');
		return sb.toString();
	}
	
}
